package com.its.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author huguangjun
 * @className Order
 * @date 2021/1/17
 * @desc 11:20
 */
@Data
@TableName("t_order")
@NoArgsConstructor
public class Order {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "product_id")
    private Long productId;

    @TableField(value = "count")
    private Integer count;

    @TableField(value = "money")
    private BigDecimal money;

    @TableField(value = "status")
    private Integer status; // 1:已完结；0：创建中
}
